package day03;
//if  else if  结构训练
public class IfElsefDemo {
    public static void main(String[] args) {
        //  1. 满2000打5折,满1000不满2000打7折,满500不满1000打8折,不满500打9折
        double prince=400.0;//(输入: 2500,1700,700,400)
        if (prince>=2000){
            prince*=0.5;
        } else if (prince>=1000) {
            prince*=0.7;
        } else if (prince>=500) {
            prince*=0.8;
        }else {
            prince*=0.9;
        }
        System.out.println("最终结算金额为:"+prince);
    }
}
